package com.ttsx.controller;

import com.ttsx.core.common.result.Result;
import com.ttsx.pojo.dto.refund.RefundQueryDTO;
import com.ttsx.service.RefundService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author wb
 * @since 2025-11-07
 */

@RestController
@RequestMapping("refund")
public class RefundController {

    @Autowired
    private RefundService refundService;

    @PostMapping("page/{pIndex}/{pSize}")
    public Result<?> pageOrder(
            @PathVariable("pIndex") Integer pIndex,
            @PathVariable("pSize") Integer pSize,
            @RequestBody RefundQueryDTO refundQueryDTO) {
        return Result.success(refundService.getPage(pIndex, pSize, refundQueryDTO));
    }

}
